export type HttpResult<T = any> = {
  data?: T;
  error?: string;
};

export interface DownloadParam {
  id: string;
  url: string;
  savePath: string;
}

export interface DownloadResult {
  taskId: string;
}

export interface DownloadProgressArgs {
  transferred: number;
  total: number;
  percent: number;
}

export interface DownloadErrorArgs {
  message: string;
}

export interface DownloadCompleteArgs {
  filePath: string;
}
